package com.eobard.config.mq;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: Eobard Gu
 * @Date: 2025-07-17
 * @Description: TODO
 */
@Configuration
public class RabbitMQConfig {
    @Bean
    public MessageConverter messageConverter() {
        //将发送的消息都转为JSON格式
        return new Jackson2JsonMessageConverter();
    }

}
